﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace SuiYuan.UI.Controls.Buttons
{
    public class LayUIButton : Button
    {
        public ButtonSize ButtonSize
        {
            get { return (ButtonSize)GetValue(ButtonSizeProperty); }
            set { SetValue(ButtonSizeProperty, value); }
        }

        public LayUIButtonType Type
        {
            get { return (LayUIButtonType)GetValue(TypeProperty); }
            set { SetValue(TypeProperty, value); }
        }

        public bool Radius
        {
            get { return (bool)GetValue(RadiusProperty); }
            set { SetValue(RadiusProperty, value); }
        }

        public bool Fill
        {
            get { return (bool)GetValue(FillProperty); }
            set { SetValue(FillProperty, value); }
        }

        public static readonly DependencyProperty ButtonSizeProperty = DependencyProperty.Register("ButtonSize", typeof(ButtonSize), typeof(LayUIButton));
        public static readonly DependencyProperty TypeProperty = DependencyProperty.Register("Type", typeof(LayUIButtonType), typeof(LayUIButton));
        public static readonly DependencyProperty RadiusProperty = DependencyProperty.Register("Radius", typeof(bool), typeof(LayUIButton));
        public static readonly DependencyProperty FillProperty = DependencyProperty.Register("Fill", typeof(bool), typeof(LayUIButton));


    }

    public enum LayUIButtonType
    {
        Default,
        Primary,
        Normal,
        Warning,
        Danger,
        Dark
    }

    public enum ButtonSize
    {
        Normal,
        Large,
        Small,
        Mini,
    }
}
